package com.sevennotes.classtable.utils

import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.luminance

fun contentColor(color: Color): Color {
//    val r = color.red * 255
//    val g = color.green * 255
//    val b = color.blue * 255
//    val gray = r * 0.299 + g * 0.587 + b * 0.114
    return if (color.luminance() > 0.5) Color.Black else Color.White
}